<template>
<div class="details">
  <h1>详情</h1>
  <div class="movie-detail">
    <div class="detname">
        <div>
          <img :src="baseDetail.DefaultImage" alt="">
        </div>
        <div>
          <h3>{{baseDetail.MovieName}}</h3>
          <p>上映日期：{{baseDetail.ReleaseDate}}</p>
          <p>点映日期：{{baseDetail.PointDate}}</p>
          <p>地区：{{baseDetail.Country}}</p>
          <p>作品类型：{{baseDetail.Genre}}</p>
        </div>
    </div>
    <div class="box-office">
      <div>
        <p>上映天数</p>
        <p>{{movieDetail.ReleaseDays}}</p>
      </div>
      <div>
        <p>点映天数</p>
        <p>{{movieDetail.PointDays}}</p>
      </div>
      <div>
        <p>点映票房</p>
        <p>{{movieDetail.BoxOfficePoint/10000}}</p>
      </div>
      <div>
        <p>上映天数</p>
        <p>{{movieDetail.ReleaseDays}}</p>
      </div>
      <div>
        <p>上映天数</p>
        <p>{{movieDetail.ReleaseDays}}</p>
      </div>
      <div>
        <p>上映天数</p>
        <p>{{movieDetail.ReleaseDays}}</p>
      </div>
      <div>
        <p>上映天数</p>
        <p>{{movieDetail.ReleaseDays}}</p>
      </div>
      <div>
        <p>上映天数</p>
        <p>{{movieDetail.ReleaseDays}}</p>
      </div>
      <div>
        <p>上映天数</p>
        <p>{{movieDetail.ReleaseDays}}</p>
      </div>
      <div>
        <p>上映天数</p>
        <p>{{movieDetail.ReleaseDays}}</p>
      </div>

    </div>
  </div>

</div>
</template>

<script>
import {getMovie_HeadBoxOfficeByMovieID,getMovie_HeadDetailByMovieID} from '../api/details.js'
export default {
  data(){
    return{
      movieDetail:'',
      baseDetail:''
    }
  },
  created(){
    getMovie_HeadBoxOfficeByMovieID({
      r: 0.5997392506156893,
      entmovieid: 683536
    }).then(res=>{
      this.movieDetail = res.data.data.table0[0]
      console.log(res.data.data.table0[0])
    }).catch(err=>{
      console.log(err)
    })
    getMovie_HeadDetailByMovieID({
      r: 0.5997392506156893,
entmovieid: 683536
    }).then(res=>{
      this.baseDetail = res.data.data.table0[0]
      console.log(res.data.data.table0[0])
    }).catch(err=>{
      console.log(err)
    })
  },
}

</script>